package com.atguigu.libtest;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * @author yihu
 * @create 2021-06-12 17:22
 * @email:1057202547@qq.com
 * @dec:
 */
public class FileUtilsTest {
    public static void main(String[] args) {
        File srcFile =  new File("day10\\randomAccessFile.png");
        File desFile =  new File("day10\\randomAccessFile2.png");
        try {
            FileUtils.copyFile(srcFile,desFile);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
